package ahblue.cn.tanzi.ui.person.pkg;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;

import ahblue.cn.tanzi.R;
import ahblue.cn.tanzi.ui.base.BaseActivity;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * @author pink-jackstraw
 * @date 2018/11/10
 * @describe 我的交易
 */
public class BusinessActivity extends BaseActivity {

    public static void into(Activity activity) {
        activity.startActivity(new Intent(activity, BusinessActivity.class));
    }

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_business_list);
        ButterKnife.bind(this);
    }

    @OnClick(R.id.btn_back)
    public void onViewClicked() {
        finish();
    }

    @OnClick({R.id.postmsg, R.id.mypost, R.id.quickly, R.id.businessmanage, R.id.refund})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.postmsg:
                break;
            case R.id.mypost:
                CardActivity.into(this);
                break;
            case R.id.quickly:
                QuickBusinessActivity.into(this);
                break;
            case R.id.businessmanage:
                BusinessManageActivity.into(this);
                break;
            case R.id.refund:
                RefundActivity.into(this);
                break;
        }
    }
}
